#ifndef LISTEDITIALOG_H
#define LISTEDITIALOG_H

#include <QDialog>

namespace Ui {
class ListEditialog;
}

class ListEditialog : public QDialog
{
    Q_OBJECT

public:
    explicit ListEditialog(const QString& title, const QStringList& fileList, QWidget *parent = nullptr);
    ~ListEditialog();

    void setFilter(const QString& filter);

protected:
    QStringList getFileList();

signals:
    void editDone(QStringList);

private slots:
    void on_btnAddNew_clicked();

    void on_btnRemove_clicked();

    void on_btnClear_clicked();

    void on_btnOK_clicked();

    void on_btnCancel_clicked();

private:
    Ui::ListEditialog *ui;
    QStringList m_fileList;
    QString m_filter;
};

#endif // LISTEDITIALOG_H
